package com.hx.voice.recognition.auth.server.feign;

import com.hx.voice.recognition.auth.server.configuration.FeignConfiguration;
import com.hx.voice.recognition.auth.server.util.user.JwtAuthenticationRequest;
import com.hx.zjb.security.api.vo.user.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @descripe：调用admin的用户校验feign
 * @company：南京华讯方舟通讯设备有限公司
 * @author：zhoujinbing
 * @time：2019/6/14 10:34
 * @version：V1.0
 */
@FeignClient(value = "voice-admin",configuration = FeignConfiguration.class)
public interface IUserService {


    /**
     * @description 校验用户
     * @method  validate
     * @param  [request]
     * @return com.hx.zjb.security.api.vo.user.UserInfo
     * @date: 2019/6/14 14:29
     * @author:zhoujinbing
     */
    @RequestMapping(value = "/api/user/validate",method = RequestMethod.POST)
    public UserInfo validate(@RequestBody JwtAuthenticationRequest request);

}